<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>图片显示测试</title>
</head>
<body>
<div id="image">
    <!-- 图片展示 -->
</div>
</body>
</html>

<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script type="text/javascript">
    $(function(){
        var htmlTest = "";
        $.ajax({
            method:"get",
            url:"fileUp?action=showImage",
            type:"json",
            success:function (result){
                console.log(result);
                var images = result.msg;
                for(var i = 0; i < images.length; i++){
                    htmlTest += "<img src='image/"+ images[i] +"'/>";
                }
                $("#image").html(htmlTest);
            }
        });
    });
</script>

